package cn.com.server.service;

import java.util.List;

import com.github.pagehelper.Page;

import cn.com.server.entity.Resource;
import cn.com.server.entity.Role;
import cn.com.server.extend.view.MenuView;
import cn.com.server.extend.model.ResourceModel;
import cn.com.server.extend.view.ResourceView;

/**
 * <p>
 * 资源表 服务类
 * </p>
 *
 * @author qing
 * @since 2017-11-20
 */
public interface ResourceService{
	public List<Resource> selectByRoleList(List<Role> roles);

	public List<MenuView> selectByMenuList(List<Role> roles, Long parentId, Integer type);

	Page<Resource> selectResourceList(ResourceModel model);

	int update(Resource entity);

	List<ResourceView> selectResourceViewTreeIteration(Long parentId, Integer status,Long roleId);

	List<ResourceView> selectResourceViewTree(Long parentId, Integer status,Long roleId);
}
